import QtQuick 1.0

QMLTwitterBase{
    id: _root

    //////////////////////////////////////////////////////////
    // properties


    //////////////////////////////////////////////////////////
    // changed


    //////////////////////////////////////////////////////////
    // signals

    signal responseSavedSearhes(string text)
    signal responseSavedSearhesShow(string text)
    signal responseSavedSearhesCreate(string text)
    signal responseSavedSearhesDestory(string text)

    //////////////////////////////////////////////////////////
    // methods

    function savedSearhes(){
        var content = {};
        requestAPI("GET", "URL_SAVED_SEARCHES"
                   , content, responseSavedSearhes);
    }

    function savedSearhesShow(id){
        var content = {};
        requestAPI("GET", "URL_SAVED_SEARCHES_SHOW"
                   , content, responseSavedSearhesShow, id);
    }

    function savedSearhesCreate(query){
        var content = {};
        requestAPI("POST", "URL_SAVED_SEARCHES_CREATE"
                   , content, responseSavedSearhesCreate);
    }

    function savedSearhesDestory(id){
        var content = {};
        requestAPI("POST", "URL_SAVED_SEARCHES_DESTORY"
                   , content, responseSavedSearhesDestory, id);
    }
}
